/*
package com.moyun.finance.utils;

import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.util.EntityUtils;

import java.io.IOException;

*/
/**
 * @author wb-ycl473317
 *//*

public class HttpUtil {

    public static String urlToStr(CloseableHttpClient httpClient, String url){
        return urlToStr(httpClient,new HttpGet(url));
    }

    public static String urlToStr(CloseableHttpClient httpClient, HttpGet get){
        CloseableHttpResponse response = null;
        try {
            response = httpClient.execute(get);
            return EntityUtils.toString(response.getEntity());
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                if(response!=null){
                    response.close();
                }
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        return null;
    }
}
*/
